package com.v5ba.annotation.scan.web;

import com.v5ba.scan.OrgService;
import com.v5ba.scan.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yiren
 * @since 2022/10/19
 */
@RestController
@RequestMapping("scan")
public class ScanController {
    @Autowired
    private UserService userService;
    @Autowired
    private OrgService orgService;
    @GetMapping("hello")
    public String sayHello(){
        userService.sayHello("李四");
        orgService.sayHello("张三");
        return "ok";
    }
}
